package com.pwc.conversionTool.csv;

import java.io.File;
import java.util.List;

import com.pwc.conversionTool.IO.FileOperation;
import com.pwc.conversionTool.config.UploadFileView;

public class CsvManager {
	private static String path;
	
	public static CsvManager initial(String path){
		CsvManager.path=path;
		return new CsvManager();
	}
	
	public static void deleteAllFiles(){
		
		List<List<String>> files=UploadFileView.initial(path).GetFiles();
		
		for(List<String> ss:files)
		{
			for(String s:ss)
			{
				String filePath=path+File.separator+s;
				File file = new File(filePath);
				FileOperation.deleteFile(file);
			}
		}
		
	}
	
}
